package com.atmilan.quartz.model.entity.im;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * im商品映射对象
 * @Description: 
 * @author daigb
 * @date 2021-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ImProductSku extends Model<ImProductSku> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    /**
     * skuid
     */
    private Integer productId;
    
    /**
     * skuid
     */
    @JsonProperty(value = "itemId")
    private String itemId;

    /**
     * 尺码
     */
    @JsonProperty(value = "size")
    private String size;

    /**
     * 吊牌价
     */
    @JsonProperty(value = "retailPrice")
    private BigDecimal retailPrice;

    /**
     * 结算价
     */
    @JsonProperty(value = "salePrice")
    private BigDecimal salePrice;

    /**
     * 活动价
     */
    @JsonProperty(value = "promotionSalePrice")
    private BigDecimal promotionSalePrice;

    /**
     * 库存数
     */
    @JsonProperty(value = "qty")
    private Integer qty;
    
    /**
     * 是否可售
     */
    @JsonProperty(value = "status")
    private Integer status;

    /**
     * 发货地
     */
    @JsonProperty(value = "shippingAddress")
    private String shippingAddress;

}
